<template>
	<view class="page">
		<!-- 安全设置列表 -->
		<view class="security-list">
			<!-- <view class="list">
				<view class="content">
					<view class="title">
						<text>实名认证</text>
					</view>
					<view class="describe">
						<text>完成实名认证，尊享更多服务</text>
					</view>
				</view>
				<view class="more">
					<text class="iconfont icon-more"></text>
				</view>
			</view> -->
			<view class="list" @click="onSecurity('relevance')">
				<view class="content">
					<view class="title">
						<text>账号关联</text>
					</view>
					<view class="describe">
						<text>可用使用微信快速登录</text>
					</view>
				</view>
				<view class="more">
					<text class="iconfont icon-more"></text>
				</view>
			</view>
			<view class="list" @click="onSecurity('password')">
				<view class="content">
					<view class="title">
						<text>修改登录密码</text>
					</view>
					<view class="describe">
						<text>建议您定期更改密码以保护账户安全</text>
					</view>
				</view>
				<view class="more">
					<text class="iconfont icon-more"></text>
				</view>
			</view>
			<!-- <view class="list" @click="onSecurity('phone')">
				<view class="content">
					<view class="title">
						<text>修改手机号</text>
					</view>
					<view class="describe">
						<text>若手机更换请尽快修改</text>
					</view>
				</view>
				<view class="more">
					<text>188****8888</text>
					<text class="iconfont icon-more"></text>
				</view>
			</view> -->
			<!-- <view class="list" @click="onSecurity('mailbox')">
				<view class="content">
					<view class="title">
						<text>关联邮箱</text>
					</view>
					<view class="describe">
						<text>可用于账号登录/身份认证等</text>
					</view>
				</view>
				<view class="more">
					<text class="iconfont icon-more"></text>
				</view>
			</view> -->
		</view>
		<!-- 账户申诉列表 -->
		<view class="appeal-list">
			<!-- <view class="list" @click="onAppeal('appeal')">
				<view class="title">
					<text>账户申诉</text>
				</view>
				<view class="more">
					<text>无法验证身份？试试自助申诉</text>
					<text class="iconfont icon-more"></text>
				</view>
			</view> -->
			<view class="list">
				<view class="title">
					<text>注销服务</text>
				</view>
				<view class="more">
					<text class="iconfont icon-more"></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			/**
			 * 账户安全点击
			 * @param {String} type
			 */
			onSecurity(type){
				switch(type) {
					case 'relevance':
						uni.navigateTo({
							url: '/pagesA/setting/accountAssociated',
						})
						break;
					case 'password':
						uni.navigateTo({
							url: '/pagesA/setting/changePassword',
						})
						break;
					case 'phone':
						uni.navigateTo({
							url: '/pagesA/my/modifyPhone',
						})
						break;
					case 'mailbox':
						uni.navigateTo({
							url: '/pagesA/setting/associatedmMailbox',
						})
						break;
				}
			},
			/**
			 * 申诉列表点击
			 * @param {String} tyep
			 */
			onAppeal(tyep){
				switch (type){
					case 'appeal':
						
						break;
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #f6f6f6;
}

/* 安全设置列表 */
.security-list{
	width: 100%;
	background-color: #FFFFFF;
	border-radius: 0 0 20rpx 20rpx;
	.list{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 4%;
		height: 140rpx;
		border-bottom: 2rpx solid #f6f6f6;
		.content{
			width: 90%;
			height: 100%;
			.title{
				display: flex;
				align-items: center;
				width: 100%;
				height: 50%;
				text{
					font-size: 30rpx;
					color: #222222;
				}
			}
			.describe{
				display: flex;
				align-items: center;
				width: 100%;
				text{
					font-size: 24rpx;
					color: #C0C0C0;
				}
			}
		}
		.more{
			display: flex;
			align-items: center;
			text{
				font-size: 28rpx;
				color: #C0C0C0;
			}
		}
	}
}

/* 账户申诉列表 */
.appeal-list{
	width: 100%;
	background-color: #FFFFFF;
	border-radius: 20rpx;
	margin: 20rpx auto;
	.list{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 4%;
		height: 100rpx;
		border-bottom: 2rpx solid #f6f6f6;
		.title{
			display: flex;
			align-items: center;
			text{
				font-size: 28rpx;
				color: #222222;
			}
		}
		.more{
			display: flex;
			align-items: center;
			text{
				font-size: 28rpx;
				color: #C0C0C0;
			}
		}
	}
}
</style>
